package com.currency.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "wyt_currency_withdrawal_detail")
public class WytCurrencyWithdrawalDetailPojo {
    public static final String WDL_STATUS_INIT = "I";
    public static final String WDL_STATUS_SUCCESS = "S";
    public static final String WDL_STATUS_FAILED = "F";

    @ApiModelProperty(value = "提现流水号")
    @TableId(value = "wdl_id")
    private String wdlId;

    @ApiModelProperty(value = "提现类型，1 - 线下提现  2 - 微信提现  3 - 支付宝提现  4 - 油卡提现")
    @TableField(value = "wdl_type")
    private Integer wdlType;

    @ApiModelProperty(value = "调用外部的参数")
    @TableField(value = "wdl_params")
    private String wdlParams;

    @ApiModelProperty(value = "支付机构返回的参数")
    @TableField(value = "return_params")
    private String returnParams;

    @ApiModelProperty(value = "提现金额")
    @TableField(value = "wdl_amount")
    private BigDecimal wdlAmount;

    @ApiModelProperty(value = "赎回状态  I：提现中  S：提现完成  F：提现失败")
    @TableField(value = "wdl_status")
    private String wdlStatus;

    @ApiModelProperty(value = "提现用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_datetime")
    private Date createDatetime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_datetime")
    private Date updateDatetime;

    public WytCurrencyWithdrawalDetailPojo() {
    }
}
